//
//  QzVideoPlayButtonView.m
//  shortvideoplay
//
//  Created by tikeios_002 on 2024/6/14.
//

#import "QzVideoPlayButtonView.h"

@implementation QzVideoPlayButtonView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backView = [[UIView alloc]initWithFrame:CGRectMake(frame.size.width/2-50, frame.size.height/2-50, 100, 100)];
        self.backView.backgroundColor = COLOR_ALPH(0, 0, 0, 0.5);
        self.backView.layer.cornerRadius = 50;
        self.backView.layer.masksToBounds = YES;
        self.backView.userInteractionEnabled = YES;
        [self addSubview:self.backView];
        
        self.showimageView = [[UIImageView alloc]initWithFrame:CGRectMake(frame.size.width/2-30, frame.size.height/2-30, 60, 60)];
        self.showimageView.image = [UIImage imageNamed:@"ic_play"];
        self.showimageView.userInteractionEnabled = YES;
        [self addSubview:self.showimageView];
    UIButton * textShowButtonTo1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
        NSString * textShowButtonTitleTo1 = @"测试功能";
        [textShowButtonTo1 setTitle:textShowButtonTitleTo1 forState:UIControlStateNormal];
        NSInteger textShowArcTo1 = arc4random_uniform(22);
        NSLog(@"随机数：%ld", (long)textShowArcTo1);
    }
    return self;
}

@end
